OPC UA connection

You can use OPC UA to connect to the KINGSTAR PLC Runtime and access the variables you created. The OPC UA server is always on as it is part of the KINGSTAR Windows service. However, to be able to collect HMI data, there should either be a PLC or User program with user variables registered. There are many OPC UA client applications, in this guide we use UaExpert as an example.

NOTE:  UaExpert is a trademark of Unified Automation GmbH. The official website is https://www.unified-automation.com/.

 

  1. Install UaExpert.
  2. Start UaExpert. It requires you to create a certification for security control. In the New Application Instance Certificate dialog box, in the Organization box, enter your organization name, and then click OK.
  3. In the Unified Automation UaExpert - NewProject window, on the Server menu, click Add.
  4. In the Add Server dialog box, in the Configuration Name box, enter "LogicLab."
  5. On the Advanced tab, use the following settings:
  6. When you're done, click OK.

  7. In the Unified Automation UaExpert - NewProject window, in the Project pane, in the Servers list, click LogicLab.
  8. On the Server menu, click Connect.
  9. In the Address Space pane, expand Objects > HMI > PLC & Objects > HMI > UserVariables.
  10. In the PLC Objects list, expand an object and drag its variable (item with a green tag) to the Data Access View pane. You can drag multiple variables.
  11. In the Data Access View pane, in the Value column, check the variable's value. To write a new value to the variable, double-click the Value column and enter a new value. To know whether the variable can be read or write, in the Attributes pane, check the AccessLevel.